import React from "react";
import { Switch, Route, Redirect } from "react-router-dom";
import Redux_promise from "./redux-promise";
import Redux_thunk from "./redux-thunk";
import Redux_actions from "./redux-actions";
function Redux() {
  return (
    <Switch>
      <Route path="/redux/promise" component={Redux_promise} />
      <Route path="/redux/thunk" component={Redux_thunk} />
      <Route path="/redux/actions" component={Redux_actions} />
      <Redirect to="/" />
    </Switch>
  );
}

export default Redux;
